package cn.sciento.farm.devicemanager.quartz.service;

import org.quartz.SchedulerException;

/**
 * @author wumu
 * @version V1.0
 * @date 4/26/18
 * @time 9:33 PM
 */
public interface QuartzService {
    boolean addJob(String jobName, String jobGroup, String cronExpression, Object params) throws SchedulerException;

    boolean rescheduleJob(String jobName, String jobGroup, String cronExpression, Object params) throws SchedulerException;

    boolean removeJob(String jobName, String jobGroup) throws SchedulerException;

    boolean pauseJob(String jobName, String jobGroup) throws SchedulerException;

    boolean resumeJob(String jobName, String jobGroup) throws SchedulerException;

    boolean triggerJob(String jobName, String jobGroup) throws SchedulerException;
}
